#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: tap_connector02_oracle.py 
@version:
@time: 2022/01/13 
"""
import pymysql
from TapClientConnector.connector.tap_connector00_base import *


class TAPDemoConnector(TAPConnectorBase):

    def __init__(self, kwargs):
        super(TAPDemoConnector, self).__init__(kwargs)
        self.connector = pymysql.connect(**self.FORMAT_DB_INFO)

    # ** DDL **

    def generate_create(self, table=None, table_column=None):
        raise NotSupport

    def generate_drop(self, table=None):
        raise NotSupport

    # **DML**

    @generate_logger
    def generate_insert(self, table=None, insert=None):
        raise NotSupport

    @generate_logger
    def generate_update(self, table=None, update=None, where=None):
        raise NotSupport

    @generate_logger
    def generate_delete(self, table=None, where=None):
        raise NotSupport

    @generate_logger
    def generate_select(self, table=None, column=None, where=None):
        raise NotSupport
